Skip to content

[SYCL][CL] Fix ownership of native handle in sycl::make_queue #18309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025

Conversation

kbenzie
Copy link
Contributor

@kbenzie kbenzie commented May 5, 2025

Level Zero is the only backend which has any explicit ownership transfer controls when creating SYCL objects from native handles.

The CUDA and HIP backends already had the default to not transferring ownership of native handles.

Up until this patch the OpenCL backend was transferring ownership when creating with a native handle, when combined with the changes to the OpenCL adapter in #17572 this caused crashes in existing workloads which expect to manage ownership of the OpenCL native handles.

Fixes URT-905.

@kbenzie kbenzie temporarily deployed to WindowsCILock May 5, 2025 09:32 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 5, 2025 10:09 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 5, 2025 10:18 — with GitHub Actions Inactive
@kbenzie kbenzie force-pushed the benie/ur-cl-queue-interop-ownership branch from 52c1534 to 4ceb427 Compare May 12, 2025 15:27
@kbenzie kbenzie temporarily deployed to WindowsCILock May 12, 2025 15:28 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 12, 2025 16:50 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 12, 2025 16:50 — with GitHub Actions Inactive
@kbenzie kbenzie force-pushed the benie/ur-cl-queue-interop-ownership branch from 4ceb427 to 5059c31 Compare May 13, 2025 09:31
@kbenzie kbenzie temporarily deployed to WindowsCILock May 13, 2025 09:32 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 13, 2025 09:56 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 13, 2025 09:56 — with GitHub Actions Inactive
@kbenzie kbenzie force-pushed the benie/ur-cl-queue-interop-ownership branch from 5059c31 to a2716e3 Compare May 14, 2025 10:05
@kbenzie kbenzie marked this pull request as ready for review May 14, 2025 10:05
@kbenzie kbenzie requested a review from a team as a code owner May 14, 2025 10:05
@kbenzie kbenzie requested a review from slawekptak May 14, 2025 10:05
@kbenzie kbenzie temporarily deployed to WindowsCILock May 14, 2025 10:05 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 14, 2025 10:39 — with GitHub Actions Inactive
@kbenzie kbenzie temporarily deployed to WindowsCILock May 14, 2025 10:39 — with GitHub Actions Inactive
@kbenzie
Copy link
Contributor Author

kbenzie commented May 14, 2025

Failures being tracked in #18463

@kbenzie kbenzie merged commit 8cd13a7 into intel:sycl May 14, 2025
34 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants